﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WindowsGame1
{
    class Chao
    {
        Texture2D textura;
        public Rectangle pos;

        public Chao(ContentManager content, GameWindow window)
        {
            textura = content.Load<Texture2D>("chao");
            pos.X = window.ClientBounds.Width / 2 - textura.Width / 2;
            pos.Y = window.ClientBounds.Height / 2 - textura.Height / 2;
            pos.Width = textura.Width;
            pos.Height = textura.Height;
        }

        public void Update()
        {
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(textura, pos, Color.White);
        }

    }
}
